package com.as3.timbot.command
{
	import flash.events.Event;
	import com.as3.timbot.command.Command;

	public class CommandEvent extends Event
	{
		public static var COMPLETE:String = "commandcomplete";
		public static var START:String = "commandstart";
		public static var PROGRESS:String = "commandprogress";
		
		private var __command:Command;
		private var __progress:Number;
		
		/**
		*	Set the value of the event
		* 
		*	@param value The command associated with the event
		*
		* 	@langversion ActionScript 3.0
		*	@playerversion Flash 9.0
		*	@tiptext
		*/
		public function setCommand(value:Command):void
		{
			__command = value;
		}
		/**
		*	Retrieves the value of the event
		* 
		*	@returns Command The command associated with the event
		*
		* 	@langversion ActionScript 3.0
		*	@playerversion Flash 9.0
		*	@tiptext
		*/
		public function getCommand():Command
		{
			return __command;
		}
		public function setProgress(value:Number):void
		{
			__progress = value;
		}
		public function getProgress():Number
		{
			return __progress;
		}
		
		public function CommandEvent(type:String, bubbles:Boolean = false,cancelable:Boolean = false)
		{
			super(type,bubbles,cancelable);
		}
	}
}